import React, {Component} from 'react';
import Navbar from './Navbar/index'
class App
    extends Component {
    render() {

        let obj={
            title:111,
            a:222,
        }

        return (
            <div>
                <div>
                    <h1>首页0</h1>
                    <Navbar title="首页0" name="上" leftshow="false"></Navbar>
                </div>
                <div>
                    <h1>首页1</h1>
                    <Navbar title="首页1" leftshow={true}></Navbar>
                </div>
                <div>
                    <h1>首页2</h1>
                    <Navbar title="首页2" leftshow={false}></Navbar>
                </div>
                <div>
                    <h1>首页3</h1>
                    <Navbar title={obj.a}></Navbar>
                    <Navbar {...obj}></Navbar>
                </div>

            </div>
        );
    }
}

export default App;
